
/////////////////////////////////////////////////
/// Classe corresondant a un des 2 tyerrains  ///
/////////////////////////////////////////////////

class terrain
{
public:
	int init(int num)
	{
		nbrmonstre=0;
		nbrmagie=0;
		nbrfdeck=-1;
		nbrdeck=40;
		nbrcimetiere=0;
		nbrmain=0;

		Vterrain    = vector3df(-346.5	,0	,num*102);
		Vmonstre[0] = vector3df(-231	,0	,num*102);
		Vmonstre[1] = vector3df(-115.5	,0	,num*102);
		Vmonstre[2] = vector3df(0		,0	,num*102);
		Vmonstre[3] = vector3df(115.5	,0	,num*102);
		Vmonstre[4] = vector3df(231		,0	,num*102);
		Vcimetiere  = vector3df(346.5	,0	,num*102);

		Vfdeck      = vector3df(-346.5	,0	,num*204);
		Vmagie[0]   = vector3df(-231	,0	,num*204);
		Vmagie[1]   = vector3df(-115.5	,0	,num*204);
		Vmagie[2]   = vector3df(0		,0	,num*204);
		Vmagie[3]   = vector3df(115.5	,0	,num*204);
		Vmagie[4]   = vector3df(231		,0	,num*204);
		Vdeck       = vector3df(346.5	,0	,num*204);

		Vmain[0]    = vector3df(-360	,0	,num*300);
		Vmain[1]    = vector3df(-270	,0	,num*300);
		Vmain[2]    = vector3df(-180	,0	,num*300);
		Vmain[3]    = vector3df(-90		,0	,num*300);
		Vmain[4]    = vector3df(0		,0	,num*300);
		Vmain[5]    = vector3df(90		,0	,num*300);
		Vmain[6]    = vector3df(180		,0	,num*300);
		Vmain[7]    = vector3df(270		,0	,num*300);
		Vmain[8]    = vector3df(360		,0	,num*300);
		Vmain[9]    = vector3df(-360	,100,num*300);
		Vmain[10]   = vector3df(-270	,100,num*300);
		Vmain[11]   = vector3df(-180	,100,num*300);
		Vmain[12]   = vector3df(-90		,100,num*300);
		Vmain[13]   = vector3df(0		,100,num*300);
		Vmain[14]   = vector3df(90		,100,num*300);
		Vmain[15]   = vector3df(180		,100,num*300);
		Vmain[16]   = vector3df(270		,100,num*300);
		Vmain[17]   = vector3df(360		,100,num*300);

		return 1;
	}

	carte* terain;
	ISceneNode* Nterrain;
	vector3df Vterrain;


	carte* monstre[5];
	vector3df Vmonstre[5];
	int nbrmonstre;

	carte* magie[5];
	vector3df Vmagie[5];
	int nbrmagie;


	carte* deckfusion[20];
	vector3df Vfdeck;
	int nbrfdeck;

	carte* deck[100];
	vector3df Vdeck;
	int nbrdeck;

	carte* cimetiere[100];
	vector3df Vcimetiere;
	int nbrcimetiere;

	carte* main[18];
	vector3df Vmain[18];
	int nbrmain;
};

